<?php session_start();?>
<HTML><HEAD>
<TITLE>Alberto Ravell</TITLE>
<link rel="stylesheet" type="text/css" media="all" href="skins/aqua/theme.css" title="Aqua" />
<style type="text/css">
<!--
.Estilo4 {color: #990000}
.Estilo5 {font-weight: bold}
.Estilo6 {color: #FF0000}
.Estilo12 {
	color: #000000;
	font-size: 14px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.Estilo14 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
<BODY text=#000000 vLink=#ff0000 aLink=#ff0000 link=#000000 bgColor=#ffffff 
topMargin=0 marginheight="0" >
<style type="text/css">
ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
/* Para las letras*/
#nav a { 
	font-weight:  bold;
	color: #FFFFFF; /*red;*/
}

#nav a {
	text-decoration: none;
}
/*Letras de la lista*/
#nav li li a {
	display: block;
	font-weight: normal;
	color: #FFFFFF; /* #060;*/
	padding: 0.2em 10px;
}

#nav li li a:hover {
	padding: 0.2em 5px;
	border: 5px solid #000000; /*#7d6340;*/
	border-width: 0 5px;
}

li {
	float: left;
	position: relative;
	width: 10em;
	text-align: center;
	cursor: default;
	background-color: #FF0000; /* white;*/
	/*border: 1px solid #7d6340;
	border-width: 1px 0;*/
}

li#first {
	border-left-width: 1em;
}

li#last {
	border-right-width: 1em;
}

li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;

	font-weight: normal;
	background: url(images/ddbg3.gif) bottom left no-repeat;
	padding: 0.5em 0 1em 0;
	border-right: solid 1px #7d6340;
}

li>ul {
	top: auto;
	left: auto;
}
/* formato de la Lista*/
li li {
	display: block;
	float: none;
	background-color: #FF0000; /* transparent;*/
	border: 0;
}

li:hover ul, li.over ul {
	display: block;
}

hr {
	display: none;
}

</style>


<script type="text/javascript">
function cancelar(){
	document.form1.action ="consultarM.php";
	document.form1.submit();
}
</script>
<TABLE height=300 cellSpacing=3 cellPadding=0 width=549 align=center 
bgColor=#ffffff border=0>
  <td height="3"><TBODY>
  <TR>
    <TD vAlign=top width=543 bgColor=#ff0000 height=416>
	<?php
		include("Coneccion.php");
		$link=Conectarse();
		$cotnot=$_POST["id"];
		$result=mysql_query("SELECT * FROM movimiento WHERE codMov = $cotnot;",$link);
		$row = mysql_fetch_array($result);
		$codMov=$row ["codMov"];
		$concepto=$row ["concepto"];
		$centro=$row ["centro"];
		$persona2=$row ["persona"];
		$factura=$row ["factura"];
		$fecha=$row ["fecha"];
		$monto=$row ["monto"];
		$observaciones=$row ["observaciones"];
		$fechaMov=$row ["fechaMov"];
		$cod_user = $_SESSION["usuario"];
	
		$consulta = "SELECT * FROM habitante WHERE ci='".$persona2."';";
		$resultado = mysql_query($consulta,$link);		
		$row = mysql_fetch_array($resultado);
		$nombre = $row ["nombre"];
		$apellido = $row ["apellido"];
	?>
	<form name="form1" method="post" action="guardarM.php">
	  <TABLE height=379 cellSpacing=1 width=541 align=center border=0>
        <TBODY>
        <TR>
          <TD width="537" height="356" vAlign=top bgColor=#ffffff>            <DIV align=center>
            <p>&nbsp;</p>
            <DIV align=center class="Estilo4">
              <p class="Estilo12">Consultar Movimiento</p>
              <p class="Estilo5 Estilo6">_________________________________________________</p>
            </DIV>
	    <TABLE height=230 cellSpacing=5 width=340 align=center  bgColor=#ffffff border=0>
              <TBODY>
              <TR>
                <TD width=328 bgColor=#ffffff height=220>
   
                  <table width="323">
                    <tr>
                      <td width="126">&nbsp;&nbsp;<span class="Estilo14">Concepto:</span></td>
                      <td width="155"><label>
                        <?php echo "$concepto"?>
                      </label></td>
                    </tr>
                    <tr>
                      <td height="22"><p class="Estilo14">&nbsp;&nbsp;Centro de Costo:</p></td>
                      <td><label>
                        <?php echo "$centro"?>
                      </label></td>
                    </tr>
                    <tr>
                      <td>&nbsp;&nbsp; <span class="Estilo14">Factura:</span></td>
                      <td><?php echo "$factura"?> </td>
                    </tr>
                    <tr>
                      <td>&nbsp;&nbsp; <span class="Estilo14">Fecha:</span></td>
                      <td><?php echo "$fecha"?> </td>
                    </tr>					
                    <tr>
                      <td> &nbsp;&nbsp; <span class="Estilo14">Monto:</span></td>
                      <td><?php echo "$monto"?>
                      </td>
                    </tr>
                    <tr>
                      <td>&nbsp;&nbsp;<span class="Estilo14"> Persona:</span></td>
                      <td><label>
                     <?php echo "$nombre $apellido"?>
                      </label></td>
                    </tr>
                  </table>
                  <p><strong>Observaciones:</strong>         
                    <label><?php echo "$observaciones" ?></label>
                    </p>
                  <p>
				  <strong>Fecha y Hora:</strong>   <?php if (strcmp($fechaMov,"00-00-0000 00:00:00 ")) echo "$fechaMov"?>
                  </p>
                  <div align="center">
                    <input type="button" name="Submit" value="Regresar"  onClick="cancelar();">
                  </div></TD>
              </TR></TBODY></TABLE>
            </DIV></TD>
        </TR>		  <input type="hidden" name="modo"  size="20" value ="update">
	  <input type="hidden" name="codnot"  size="20" value ="<?php echo $cotnot ?>">
			
	  </TBODY></TABLE>
	 
    </form></TD>
	  
</TR><td height="19"></TBODY>
</TABLE>
<p align="center" style="margin-top: 7; margin-bottom: 0">
        <font face="Arial" size="1">Copyright 2011 Consejo Comunal Alberto Ravell        </font>

</BODY></HTML>